// 组织架构
import request from '@/config/axios'
// 
export const deptList = () => {//
    return request.get({ url: '/api/enterprise/dept/list' })
}
export const deptTreeList = () => {//
    return request.get({ url: '/api/enterprise/dept/treeList' })
}
// 
export const deptAdd = (data: any) => {//
    return request.post({ url: '/api/enterprise/dept', data: data })
}
export const deptEdit = (data: any) => {//
    return request.put({ url: '/api/enterprise/dept', data: data })
}
export const deptDelete = (params: any) => {//
    return request.delete({ url: '/api/enterprise/dept/'+ params })
}